package com.gph.saviorframework.activiti.extension.identity;

import org.activiti.engine.impl.interceptor.Session;
import org.activiti.engine.impl.interceptor.SessionFactory;
import org.activiti.engine.impl.persistence.entity.GroupIdentityManager;
import org.springframework.beans.factory.annotation.Autowired;

public class CustomGroupEntityManagerFactory implements SessionFactory {

	@Autowired
	private CustomGroupEntityManager customGroupEntityManager;
	public Class<?> getSessionType() {
		return GroupIdentityManager.class;
	}

	public Session openSession() {
		return this.customGroupEntityManager;
	}

}
